var win = Ti.UI.currentWindow;

Ti.include("config.js");
Ti.include("/Idioma/"+ win.idioma+".js");

Ti.API.info('config:'+win.idioma);
Ti.API.info('Language:'+config.url_calendari);
win.backgroundImage='img/background2.png';

var webCalendari = Ti.UI.createWebView({
	scalesPageToFit:false,
	url:config.url_calendari,
	backgroundColor:'transparent'
});

webCalendari.addEventListener('error', function(e) { 
	alert(Locales.ConnectError);
});

win.add(webCalendari);